package edu.zut.cs.software.estateagent.order.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.zut.cs.software.base.web.spring.controller.GenericController;
import edu.zut.cs.software.estateagent.order.domain.LeasingOrder;
import edu.zut.cs.software.estateagent.order.service.LeasingOrderManager;
@CrossOrigin(origins = "*")
@Controller
@RequestMapping("/leasingorder")
public class LeasingOrderController extends GenericController<LeasingOrder, Long, LeasingOrderManager> {
	LeasingOrderManager leasingorderManager;

	@RequestMapping("/index")
	public String index() {
		return "leasingorder/index";
	}

	@Autowired
	public void setLeasingOrderManager(LeasingOrderManager leasingorderManager) {
		this.leasingorderManager = leasingorderManager;
		this.manager = this.leasingorderManager;
	}
}